package com.qili.mapper.supervisor;

import com.qili.base.mapper.BaseMapper;
import com.qili.entity.supervisor.SupervisorProjectStage;
import com.qili.entity.supervisor.dto.SupervisorProjectStageDTO;

import java.util.List;

/**
 * @author zhaoyongke
 * @date 2020/11/2  项目阶段
 * @description
 */
public interface SupervisorProjectStageMapper  extends BaseMapper<SupervisorProjectStage,String> {


    List<SupervisorProjectStageDTO> selectProjectStage(SupervisorProjectStageDTO dto);
    /**
    * @Author:zhaoyongke
    * @Description: 查询最大排序编号
    * @param dto
    * @Date:11:16 2021/1/8
    */
    Integer selectProjectStageMaxOrderNum(SupervisorProjectStageDTO dto);
    /**
     * @Author:Zhangshuo
     * @Description:根据项目ID删除
     * @param ids
     * @Date:20:33 2020-12-11
     */
    int deleteByProjectIds(String[] ids);

    int insert(SupervisorProjectStage supervisorProjectStage);

    int getNotFinishedStageCount(SupervisorProjectStage stage);
}
